package org.microdream.easy.deploy.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

@Controller
public class DRentWeb {

    @GetMapping("dRent")
    public String main(){
        return "/pages/rent/dRentMain";
    }

    @GetMapping("dRentAdd")
    public String dRentAdd(){
        return "/pages/rent/dRentAdd";
    }

    @GetMapping("dRentUpdate")
    public String dRentUpdate(Map<String, Object> map, Integer id){
        map.put("id",id);
        return "/pages/rent/dRentUpdate";
    }
}
